package com.export.bean.model;


import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by MeowParse on 2017/5/10.
 *
 */
public class StateModel {

    private int state;
    private int uploadState;
    private String address;
    private int popState;

    private Queue<Integer> actNum;

    public StateModel(){
        state = 0;
        uploadState = 0;
        address = "";
        popState = 0;
        actNum = new LinkedList<Integer>();
    }

    public int getState() {
        return state;
    }

    public void setState() {
        this.state ++;
    }

    public int getUploadstate() {
        return uploadState;
    }

    public void setUploadstate() {
        this.uploadState ++;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPopState() {
        return popState;
    }

    public void setPopState(int popState) {
        this.popState = popState;
    }

    public void reset(){
        state = 0;
        uploadState = 0;
        address = "";
        popState = 0;
        actNum.clear();
    }

    public void addActNum(){
        actNum.offer(1);
    }

    public int minusActNum(){
        return actNum.poll();
    }

    public Queue<Integer> getActNum() {
        return actNum;
    }

}
